﻿@model IEnumerable<anpr.Models.Officer>

@{
    ViewBag.Title = "Index";
}

<h2>HALLO</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            firstName
        </th>
        <th>
            midName
        </th>
        <th>
            lastName
        </th>
        <th>
            DOB
        </th>
        <th>
            street
        </th>
        <th>
            suburb
        </th>
        <th>
            state
        </th>
        <th>
            postcode
        </th>
        <th>
            phoneNumber
        </th>
        <th>
            mobileNumber
        </th>
        <th>
            posting
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.firstName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.midName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.lastName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DOB)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.street)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.suburb)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.state)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.postcode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.phoneNumber)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.mobileNumber)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.posting)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.officerID }) |
            @Html.ActionLink("Details", "Details", new { id=item.officerID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.officerID })
        </td>
    </tr>
}

</table>
